Platform Explorer / Nuxeo Platform 2021.61

Contribution org.nuxeo.ecm.platform.forms.layouts.webapp.widgts--widgets

This contribution is part of XML component org.nuxeo.ecm.platform.forms.layouts.webapp.widgts inside nuxeo-platform-webapp-base-2021.61.12.jar /OSGI-INF/widgets-contrib.xml

Extension Point

Extension point widgets of component WebLayoutManager.

Registration Order

7
The registration order represents the order in which this contribution was registered on its target extention point. This will impact the override/merge behaviour when it is implemented on the target service, and is useful for proper customization of existing contributions.
You can influence this order by adding "require" tags in the containing component declaration, to make sure it is resolved after another component (see "Resolution Order" on components).

Contributed Items

  • <widget name="life_cycle_transitions" type="life_cycle_transitions">
    
          <documentation>
            Default widget listing available life cycle transitions from the
            document's current state and document's life cycle policy.
            <br/>
            The chosen transition is stored in the contextData of the document.
          </documentation>
    
          <labels>
            <label mode="any">label.life.cycle.changeFor</label>
          </labels>
          <fields>
            <field>contextData['lifeCycleTransition']</field>
          </fields>
          <widgetModes>
            <mode value="create">hidden</mode>
            <mode value="view">hidden</mode>
          </widgetModes>
          <properties widgetMode="edit">
            <property name="currentLifeCycleState">#{layoutValue.currentLifeCycleState}</property>
            <property name="lifeCycleName">#{layoutValue.lifeCyclePolicy}</property>
          </properties>
        </widget>

    Default widget listing available life cycle transitions from the document's current state and document's life cycle policy. The chosen transition is stored in the contextData of the document.

  • <widget name="group_name" type="text">
          <labels>
            <label mode="any">label.groupManager.groupName</label>
          </labels>
          <translated>true</translated>
          <fields>
            <field schema="group">groupname</field>
          </fields>
          <widgetModes>
            <mode value="create">edit</mode>
            <mode value="any">hidden</mode>
          </widgetModes>
          <properties widgetMode="any">
            <property name="required">true</property>
            <property name="styleClass">dataInputText</property>
          </properties>
        </widget>
  • <widget name="group_label" type="text">
          <labels>
            <label mode="any">label.groupManager.groupLabel</label>
          </labels>
          <translated>true</translated>
          <fields>
            <field schema="group">grouplabel</field>
          </fields>
          <properties widgetMode="edit">
            <property name="styleClass">dataInputText</property>
          </properties>
        </widget>
  • <widget name="group_members" type="template">
          <labels>
            <label mode="any">label.groupManager.userMembers</label>
          </labels>
          <translated>true</translated>
          <fields>
            <field schema="group">members</field>
          </fields>
          <properties widgetMode="any">
            <property name="template">
              /widgets/user_suggestion_widget_template.xhtml
            </property>
            <property name="userSuggestionSearchType">USER_TYPE</property>
            <property name="operationId">UserGroup.Suggestion</property>
            <property name="hideHelpLabel">true</property>
            <property name="suggestionFormatter">userEntryDefaultFormatter</property>
            <property name="selectionFormatter">userEntryDefaultFormatter</property>
          </properties>
        </widget>
  • <widget name="group_subgroups" type="template">
          <labels>
            <label mode="any">label.groupManager.groupMembers</label>
          </labels>
          <translated>true</translated>
          <fields>
            <field schema="group">subGroups</field>
          </fields>
          <properties widgetMode="any">
            <property name="template">
              /widgets/user_suggestion_widget_template.xhtml
            </property>
            <property name="userSuggestionSearchType">GROUP_TYPE</property>
            <property name="operationId">UserGroup.Suggestion</property>
            <property name="hideHelpLabel">true</property>
            <property name="suggestionFormatter">userEntryDefaultFormatter</property>
            <property name="selectionFormatter">userEntryDefaultFormatter</property>
          </properties>
        </widget>

XML Source

<extension point="widgets" target="org.nuxeo.ecm.platform.forms.layout.WebLayoutManager">

    <widget name="life_cycle_transitions" type="life_cycle_transitions">

      <documentation>
        Default widget listing available life cycle transitions from the
        document's current state and document's life cycle policy.
        <br/>
        The chosen transition is stored in the contextData of the document.
      </documentation>

      <labels>
        <label mode="any">label.life.cycle.changeFor</label>
      </labels>
      <fields>
        <field>contextData['lifeCycleTransition']</field>
      </fields>
      <widgetModes>
        <mode value="create">hidden</mode>
        <mode value="view">hidden</mode>
      </widgetModes>
      <properties widgetMode="edit">
        <property name="currentLifeCycleState">#{layoutValue.currentLifeCycleState}</property>
        <property name="lifeCycleName">#{layoutValue.lifeCyclePolicy}</property>
      </properties>
    </widget>

    <!-- group's layout widgets -->
    <widget name="group_name" type="text">
      <labels>
        <label mode="any">label.groupManager.groupName</label>
      </labels>
      <translated>true</translated>
      <fields>
        <field schema="group">groupname</field>
      </fields>
      <widgetModes>
        <mode value="create">edit</mode>
        <mode value="any">hidden</mode>
      </widgetModes>
      <properties widgetMode="any">
        <property name="required">true</property>
        <property name="styleClass">dataInputText</property>
      </properties>
    </widget>
    <widget name="group_label" type="text">
      <labels>
        <label mode="any">label.groupManager.groupLabel</label>
      </labels>
      <translated>true</translated>
      <fields>
        <field schema="group">grouplabel</field>
      </fields>
      <properties widgetMode="edit">
        <property name="styleClass">dataInputText</property>
      </properties>
    </widget>
    <widget name="group_members" type="template">
      <labels>
        <label mode="any">label.groupManager.userMembers</label>
      </labels>
      <translated>true</translated>
      <fields>
        <field schema="group">members</field>
      </fields>
      <properties widgetMode="any">
        <property name="template">
          /widgets/user_suggestion_widget_template.xhtml
        </property>
        <property name="userSuggestionSearchType">USER_TYPE</property>
        <property name="operationId">UserGroup.Suggestion</property>
        <property name="hideHelpLabel">true</property>
        <property name="suggestionFormatter">userEntryDefaultFormatter</property>
        <property name="selectionFormatter">userEntryDefaultFormatter</property>
      </properties>
    </widget>
    <widget name="group_subgroups" type="template">
      <labels>
        <label mode="any">label.groupManager.groupMembers</label>
      </labels>
      <translated>true</translated>
      <fields>
        <field schema="group">subGroups</field>
      </fields>
      <properties widgetMode="any">
        <property name="template">
          /widgets/user_suggestion_widget_template.xhtml
        </property>
        <property name="userSuggestionSearchType">GROUP_TYPE</property>
        <property name="operationId">UserGroup.Suggestion</property>
        <property name="hideHelpLabel">true</property>
        <property name="suggestionFormatter">userEntryDefaultFormatter</property>
        <property name="selectionFormatter">userEntryDefaultFormatter</property>
      </properties>
    </widget>
  </extension>